package com.smarthome.rpc.hkVideo;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.smarthome.common.tools.BossCachedKeysUtil;
import com.smarthome.common.tools.cache.JedisUtils;

@Service("CameraListController")
public class CameraListController extends BaseController {

	public String getCameraList() throws Exception {
		Map<String, Object> paramsMap = new HashMap<String, Object>();
		paramsMap.put("pageSize", "10000");
		paramsMap.put("pageStart", "0");
		paramsMap.put("accessToken", JedisUtils.get(BossCachedKeysUtil.getKey(BossCachedKeysUtil.MODULE_HK_VIDEO_TOKEN, "1")));
        Map<String, Object> map = paramsInit("cameraList", paramsMap);
        return doPost(map);
	}

}
